package com.pavelk.orion.view.components
{
	import flash.display.Sprite;
	import flash.display.Stage;

	public class BaseView extends Sprite implements IBaseView
	{
		protected var st:Stage;
		protected var background:Sprite;
		//public function get background():Sprite { return _background; }
		
		public function BaseView()
		{
			st = StageReference.getStage();
			
			background = new Sprite();
			addChild( background );
		}
		
		public function addAssetss( assets:Object ) : void
		{
            var AssetClass:Class = assets.Background.asset;
            //var AssetClass:Class = assets.River.asset;
            var bg:Sprite = new AssetClass();
            background.addChild( bg );
		}
		
		public function test( s:String ) : void
		{
			trace( s );
		}
		
	}
}